﻿@using CodeCamp.Models.Sessions
@model SessionsEditViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Session Details for " + @Model.Title);
    }
    else
    {
        ViewBag.Title = "Code Camp | Session Details for " + @Html.Encode(@Model.Title);
    }
}

@section headaddon {
<style>
    #Title
    {
        width: 40em;
    }
    #SessionMaterialsUrl
    {
        width: 40em;
    }
    fieldset label
    {
        margin-top:6px;
        width:40em;
    }
    p.field-note
    {
        margin:0;
    }
</style>
}

<h2>Add session</h2>

@if (Model.EventShortName == "CC19")
{
@Html.Partial("SessionTopicsListPartial")
}

@Html.Partial("PartialViews/EditPartial", @Model)

@Html.ActionLink("Back to Sessions List", "List")

@section sidebar {
    @Html.Partial("SidebarCommonPartial")

@*    <div id="eventTagsContainer" class="widget rounded-10">
        <h3>Event Tags</h3>
        @Html.RenderPartial("PartialViews/EventTags", @Model.EventTagsInUse )
    </div>
*@
}
